const {
    invoke,
    query,
    enrollAdmin,
    registerUser
} = require('../tools/index.js');

async function Invoke() {
    console.log("-------------testInvoke--------------")
    const data = {
        host: "106.12.220.29",
        orderHost:"139.199.191.238",
        org:"2",
        username: "user2",
        chaincodeId: "dealer",
        channelId: "mychannel",
        fcn: "create",
        args: ["DealerDeal","DEALERDEAL7","name1","address1","4","5","6","7","8","9","10"],
    }
    await invoke(data, r => {
        console.log(r)
    }, msg => {
        console.log(msg)
    })
}

(async function () {
    await Invoke();
})()